package com.fortune.rainshinecommon.exceptions;

import com.fortune.rainshinecommon.enums.ExceptionEnum;

/**
 * @author wcy
 * @description token验证异常
 * @createDate 18-4-3
 * @updateBy
 * @updateDate
 */
public class TokenException extends RuntimeException{

    private static final long serialVersionUID = 527526302592654342L;
    private String errMsg;
    private Integer errCode;

    public TokenException(ExceptionEnum exceptionEnum) {
        this.errMsg = exceptionEnum.getErrMsg();
        this.errCode = exceptionEnum.getErrCode();
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }
}
